package cn.smile.dao.common;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import cn.smile.entity.common.SiteSetting;

/**
 * 网站设置dao层
 */
@SuppressWarnings("JpaQlInspection")
@Repository
public interface SiteSettingDao extends JpaRepository<SiteSetting, Long> {

    /**
     * 根据id查找
     */
    @Query("select ss from SiteSetting ss where id = 1")
    SiteSetting find();
}
